package com.android.task4;

public class GeoPoint {
	protected int mLongitudeE6;
	protected int mLatitudeE6;

	public GeoPoint(final int latitudeE6, final int longitudeE6) {
		this.mLatitudeE6 = latitudeE6;
		this.mLongitudeE6 = longitudeE6;
	}

	public GeoPoint(final double latitude, final double longitude) {
		this.mLatitudeE6 = (int) (1E6 * latitude);
		this.mLongitudeE6 = (int) (1E6 * longitude);
	}

	public int getLongitudeE6() {
		return this.mLongitudeE6;
	}

	public int getLatitudeE6() {
		return this.mLatitudeE6;
	}
}

